{extend name="property/public/insidePageBase" /}
{block name="title"}新建流程配置{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <form class="layui-form layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">流程类型</label>
                <div class="layui-input-block">
                    <select name="config_id" lay-filter="config_id" lay-search>
                        <option value="">--请选择--</option>
                        {foreach $configData as $k=>$v}
                        <option value="{$v['id']}">{$v['flow_name']}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">汇报内容</label>
                <div class="layui-input-block">
                    <textarea name="report_content" id="edit" placeholder="请输入内容" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" type="button" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form','tinymce', 'layer'], function () {
        var form = layui.form, layer = layui.layer, tinymce = layui.tinymce,$ = layui.$;
        var edit = tinymce.render({
            elem: "#edit"
            , height: 400
            , images_upload_url: '{:url("propertyWorkReportSubmitAdd")}?field=edit'
        });
        $('#submitBtn').on('click', function() {
            edit.save();
        });
    });
</script>
{/block}